package filter;

import javax.servlet.*;
import java.io.IOException;

/**
 * 06-过滤器链
 */
public class Demo05Filter implements Filter {



    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        System.out.println("Demo05Filter 过滤");
        chain.doFilter(request, response);//相当于执行Demo01Servlet
        System.out.println("Demo05Filter 放行");

    }
}
